|
MOVE OBJECT DOWN
This command will move the object in a down direction relative to its forward facing angle, rather than an absolute world direction.
MOVE OBJECT DOWN Object Number, Value
Object Number
Integer
The object number
Value
Float
This command will move the object in a down direction relative to its forward facing angle
This command does not return a value.
sync on : sync rate 60 : hide mouse:cls 0
autocam off
ObjectNumber=1
SecondObject=2
make object cone ObjectNumber,10
xrotate object ObjectNumber,90
fix object pivot ObjectNumber
color object ObjectNumber,rgb(0,255,0)
position object ObjectNumber, 0,0,0
clone object SecondObject,ObjectNumber
color object SecondObject,rgb(255,0,0)
position object SecondObject,25,0,25
while mouseclick()=0
set cursor 0,0
if leftkey()=1 then turn object left SecondObject,1
if rightkey()=1 then turn object right SecondObject,1
if upkey()=1 then move object down SecondObject,1
if downkey()=1 then move object up SecondObject,1
position camera object position x(SecondObject),object position y(SecondObject),object position z(SecondObject)+20
point camera object position x(SecondObject),object position y(SecondObject),object position z(SecondObject)
sync
endwhile
delete object ObjectNumber
delete object SecondObject
end
BASIC3D Commands Menu
Index
|